<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IList<SinBiota.Model.Entities.Municipality>>" %>
<%@ Import Namespace="Localization" %>
<%@ Import Namespace="SinBiota.Model.Entities" %>
<%@ Import Namespace="Sinbiota.Web.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Strings.Municipality %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2><%: Strings.Municipality %></h2>
<% Html.BeginForm(); %>
        <div class="display-field"><strong><%: Strings.Search %>:</strong> <%: Html.TextBox("Search","") %> <input type="submit" value="OK"/></div>

<p class="small button radius">
  <%: Html.ActionLink(Strings.CreateNew, "Create") %>  
</p>


<div class="editor-label">
    <%: Strings.State %>: <%= Html.EnumDropDownList<State>(new { onchange = "this.form.submit();" })%> 
</div>

<% Html.EndForm(); %>

<p>
    <%= Model.Count() %> <%: Strings.Municipalities %>.
</p>

<%Html.RenderPartial("MunicipalityList", Model);  %>

<p class="small button radius">
    <%: Html.ActionLink(Strings.CreateNew, "Create") %>
</p>

</asp:Content>

